From 6551aa30fdd9ca1c990e52b6f6204089f9be49a3 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Wed, 2 Feb 2011 15:30:20 +0000 Subject: [PATCH] Remove the $request parameter fro SpecialUploadStash::__construct(). This parameter was in SpecialUpload::__construct because it used to be the only way to talk to the upload backend in the pre-1.16 era. Not needed for SpecialUploadStash. --- includes/specials/SpecialUploadStash.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index 48a41a5e69..cf33cb980c 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -36,7 +36,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { // uploading. const MAX_SERVE_BYTES = 262144; // 256K - public function __construct( $request = null ) { + public function __construct() { global $wgRequest; parent::__construct( 'UploadStash', 'upload' ); @@ -46,7 +46,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { return null; } - $this->loadRequest( is_null( $request ) ? $wgRequest : $request ); + $this->loadRequest( $wgRequest ); } /** -- 2.20.1